package com.enki.cigarettes.entity;

import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.Objects;

@Entity
@Table(name = "enterprise_admin_employee_t", schema = "e_cigarettes_shop", catalog = "")
public class EnterpriseAdminEmployeeT {
    private String id;
    private String provideBusinessTId;
    private String adminEmployeeTId;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Boolean removed;

    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }


    @Basic
    @Column(name = "provide_business_t_id")
    public String getProvideBusinessTId() {
        return provideBusinessTId;
    }

    public void setProvideBusinessTId(String provideBusinessTId) {
        this.provideBusinessTId = provideBusinessTId;
    }

    @Basic
    @Column(name = "admin_employee_t_id")
    public String getAdminEmployeeTId() {
        return adminEmployeeTId;
    }

    public void setAdminEmployeeTId(String adminEmployeeTId) {
        this.adminEmployeeTId = adminEmployeeTId;
    }

    @Basic
    @Column(name = "create_time")
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "update_time")
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "removed")
    public Boolean getRemoved() {
        return removed;
    }

    public void setRemoved(Boolean removed) {
        this.removed = removed;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EnterpriseAdminEmployeeT that = (EnterpriseAdminEmployeeT) o;
        return removed == that.removed &&
                Objects.equals(id, that.id) &&
                Objects.equals(provideBusinessTId, that.provideBusinessTId) &&
                Objects.equals(adminEmployeeTId, that.adminEmployeeTId) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(updateTime, that.updateTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, provideBusinessTId, adminEmployeeTId, createTime, updateTime, removed);
    }
}
